﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Templates.ascx.cs"
    Inherits="Components_MSSQL_Templates" %>
<table style="width: 100%;" class="box">
    <tr class="tb-header">
        <td style="white-space: nowrap;">Project Name</td>
        <td colspan="2">Connection String</td>
    </tr>
    <asp:Repeater ID="rptResult" runat="server">
        <ItemTemplate>
            <tr>
                <td>
                    <b><%#Eval("ProjectName") %></b>
                </td>
                <td>
                    <%#Eval("ConnectionString") %>
                </td>
                <td></td>
            </tr>
            <tr>
                <td colspan="3">
                    <div class="line-sub"></div>
                </td>
            </tr>
            <tr>
                <td colspan="3" style="text-align: right;">
                    <a href="javascript:;;" onclick="AjaxMsg('Edit / Create template','750','560',SerUrl,'Callback/MSSQL/Template.aspx?type=2&pn=<%#Eval("ProjectName") %>&get=1','dv-content',null);">Edit Template</a>
                    &nbsp;<span style="color:#a28484;background-color:#f2f2f2;">|</span>&nbsp;
                    <a href="javascript:;;" onclick="sld('dv-templates');window.location='Edit.aspx?pn=<%#Eval("ProjectName") %>';">Generate Code</a>
                    <%--<input type="button" onclick="AjaxMsg('Edit / Create template','750','560',SerUrl,'Callback/MSSQL/Template.aspx?type=2&pn=<%#Eval("ProjectName") %>&get=1','dv-content',null);"
                        value="Edit template" class="btn3" />&nbsp;<input type="button" onclick="sld('dv-templates');window.location='Edit.aspx?pn=<%#Eval("ProjectName") %>';"
                            value="Generate code by this template" class="btn3" />--%>

                </td>
            </tr>
            <tr>
                <td colspan="3">
                    <div class="line"></div>
                </td>
            </tr>
        </ItemTemplate>
    </asp:Repeater>
</table>
